home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / utility / 71 / utl / startup.doc < prev    next >
Encoding:
Text File  |  1986-11-21  |  2.9 KB  |  75 lines

  1.                            S T A R T U P
  2.  
  3.                          copyright 1986 by
  4.                     Mitch Trachtenberg /Traxsoft
  5.                       532 Massachusetts Avenue
  6.                          Boston, MA  02118
  7.  
  8.                        Compuserve 73647,1447 
  9.  
  10.   This program executes the tasks found in the file named on the command line 
  11. (or the default task file, startup.tsk) as follows:
  12.  
  13.   x:                --  makes x: the logged drive
  14.  
  15.   md string         --  creates directory named "string" 
  16.                         on the logged drive 
  17.  
  18.   copy path1 path2  --  copies the file specified by path1 to a new file
  19.                         at path2
  20.  
  21.   run  f.prg        --  executes f.prg without arguments
  22.  
  23.   run1 f.prg arg    --  executes f.prg with one argument
  24.  
  25.   runX f.prg arg1
  26.            ... argX --  executes f.prg with X arguments
  27.         
  28.  
  29.  
  30.  
  31.   For example, if a file named cl contains the following:
  32.   
  33.             run1 editor.ttp testfile.c
  34.             run1 mmcc.ttp testfile.c
  35.             run1 mmlink.ttp testfile.o
  36.             run  a.prg 
  37.  
  38. the command "startup cl" will start by running the editor with testfile.c
  39. as the editor's working file; when the editor is exited, startup will load
  40. and execute mmcc.ttp with testfile.c as its argument; when mmcc.ttp is
  41. finished, startup will load and execute mmlink.ttp with testfile.o as its
  42. argument, and finally startup will load and execute a.prg.
  43.  
  44.   As another example, if a file named ramdisk contains the following:
  45.   
  46.             d:
  47.             md megamax
  48.             md megamax\headers
  49.             copy a:\megamax\syslib d:\megamax\syslib
  50.             copy a:\megamax\errors d:\megamax\errors
  51.             copy a:mmcc.ttp d:mmcc.ttp
  52.             copy a:mmlink.ttp d:mmlink.ttp
  53.             run b:editor.ttp
  54.             
  55. the command "startup ramdisk" will (assuming a ramdisk with drive identifier
  56. d: has been created) log onto the ramdisk and create a megamax directory and
  57. a headers subdirectory within that directory; copy the file named syslib from
  58. the megamax directory of the disk in drive A to the ramdisk; copy the file
  59. named errors from the megamax directory of A to the ramdisk; copy the files
  60. mmcc.ttp and mmlink.ttp from drive A to the root directory of the ramdisk; and
  61. finally load and execute the file named editor.ttp.
  62.  
  63.   If no command line argument is given to startup, or if it is run by clicking
  64. on its icon, startup will expect to find its tasks in a file named startup.tsk.
  65.  
  66.   You may use and copy this program freely with the following 2 restrictions:
  67.   
  68.     1) You must make the program and this documentation 
  69.        available together; and
  70.         
  71.     2) You may not charge a fee for this product unless you are
  72.        a non-profit user's group recovering distribution costs.
  73.  
  74.   Good luck and enjoy.
  75. əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə